/**
 * @file e1_t2_q3.c
 * @date 2022-03-01
 * 
 * @copyright Copyright (c) 2022 cnzyx MIT Licence
 * 
 */

#include<stdio.h>
#include<stdlib.h>

void fun(int *num1,int *num2){
    *num1=*num1^*num2;
    *num2=*num1^*num2;
    *num1=*num1^*num2;
    
    // int temp;
    // temp=*num1;
    // *num1=*num2;
    // *num2=temp;
}
int main(int argc, char const *argv[])
{
    //UTF-8
    system("chcp 65001");

    int num1,num2,result;
    printf("请输入两个数：");
    scanf("%d %d",&num1,&num2);
    fun(&num1,&num2);
    printf("结果：%d,%d\n",num1,num2);

    //Pause console
    system("pause");
    return 0;
}
